<h3>Shopping Cart</h3>

<h4>Order details</h4>

<table border="3px" >
	<tr>
		<th width="45%" align="left"> Name</th>
		<th width="10%" align="left"> Quantity</th>
		<th width="25%" align="left"> Unit cost</th>
		<th align="right"> Total</th>
	</tr>
<?php //foreach ($Details as $Detail) {
?>
	<tr>
		<td><?php echo $product->name; ?></td>
		<td><?php echo $qnt; ?></td>
		<td><?php echo $product->cost; ?></td>
		<td align="right"><?php echo $product->cost*$qnt; ?></td>
		
	</tr>
<?php
//}
?>

	<tr>
		<td colspan="3" align="right"><b>Total:   </b></td>
		<td align="right"><b><?php echo $product->cost*$qnt; ?></b></td>	
	</tr>
	
</table>

<p></p>
<p>Payments options</p>
<?php
$url = $this->url('estore', array(
     'action' => 'shoppingCart',
     //'id'    => $this->id,
       'id'   =>  $product->id,
       'qnt' => $qnt,
 ));
$url = $this->url('estore', array(
		'action' => 'paypalExpressCheckout',
		//'id'    => $this->id,
		'id'   =>  $product->id,
		'qnt' => $qnt,
        'orderid' => $orderid,
));
?>
<!--action="<?php echo $url; ?>" method="post" class="Form"-->
<!--<form >
 <div>
     <input type="hidden" name="id" value="<?php echo (int) $product->id; ?>" />
     <input type="hidden" name="orderid" value="<?php echo (int) $orderid; ?>" />
     <input type="hidden" name="qnt" value="<?php echo (int) $qnt; ?>" />
     <input type="submit" name="purchase" value="Proceed?" />
 </div>
 </form> -->

<a href="<?php echo $this->url('estore', array('action'=>'paypalExpressCheckout','id'=>$product->id,'qnt'=>$qnt, 'orderid'=>$orderid));?>">
<img src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" align="left" style="margin-right:7px;">
</a>

